package com.okq.entity.base;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.MappedSuperclass;
import java.io.Serializable;

/**
 * 描述 : 基础字段主键Id映射超类
 * 作者 : zdl
 * 日期 : 2017/6/28 10:02
 */
@MappedSuperclass
public class BaseEntity implements Serializable {
    private static final long serialVersionUID = -416698602925151073L;
    /**
     * 主键Id
     */
    @Id
    @Column(name = "id")
    private String id;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }
}
